package com.bootdo.blog.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.blog.dao.PlotMapper;
import com.bootdo.blog.domain.PlotDO;
import com.bootdo.blog.service.PlotService;



@Service
public class PlotServiceImpl implements PlotService {
	@Autowired
	private PlotMapper plotMapper;
	
	@Override
	public PlotDO get(Integer plotId){
		return plotMapper.get(plotId);
	}
	
	@Override
	public List<PlotDO> list(Map<String, Object> map){
		return plotMapper.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return plotMapper.count(map);
	}
	
	@Override
	public int save(PlotDO plot){
		return plotMapper.save(plot);
	}
	
	@Override
	public int update(PlotDO plot){
		return plotMapper.update(plot);
	}
	
	@Override
	public int remove(Integer plotId){
		return plotMapper.remove(plotId);
	}
	
	@Override
	public int batchRemove(Integer[] plotIds){
		return plotMapper.batchRemove(plotIds);
	}
	
}
